<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/jquery-3.3.1.min.js" ></script>
		<script>
			$(function(){
				$("#btn").click(function(){
				/*	var a=$("#title").attr("align");
					alert(a);*/
//					var a=$("#title").prop("align");
//					alert(a);
				var h=$("#title");
				h.prop("style","border:20px solid red;font-size:15px");
				});
			});
		</script>
	</head>
	<body>
		<h1 id="title" >Javascript 大法，横扫江湖</h1>
		<input type="button" value="获得align属性" id="btn"/>
	</body>
</html>
